package com.zhao;

import com.zhao.flyweight.AbstractBox;
import com.zhao.flyweightFactory.BoxFactory;

public class Client {
    public static void main(String[] args) {
        BoxFactory boxFactory = BoxFactory.getInstance();

        AbstractBox i = boxFactory.getBox("i");
        i.display("blue");

        AbstractBox l = boxFactory.getBox("l");
        l.display("black");

        AbstractBox o = boxFactory.getBox("o");
        o.display("green");
    }
}
